<!-- 发货明细 -->
<template>
  <el-dialog :title="dialog.title" :visible.sync="dialog.show" width="600px" custom-class="mydialog" append-to-body @close="handleClose">
    <div class="dialog-content">
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        class="dialog-table">
        <el-table-column
          prop="id"
          label="SKU名称"
          width="120"/>
        <el-table-column
          prop="order"
          label="待收货数量"/>
        <el-table-column label="本次收货数量">
          <template slot-scope="scope">
            <el-input v-model="scope.row.num3"/>
          </template>
        </el-table-column>
      </el-table>
      <div class="text-center mt-30">
        <el-button class="greenbt" type="primary">确认收货</el-button>
      </div>
    </div>
  </el-dialog>
</template>
<script>
export default{
  props: {
    // 父组件调用时传进来的参数
    modalData: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      dialog: {
        title: '', show: true
      },
      tableData: [{
        id: '12987122',
        order: '23',
        amount1: '234',
        amount2: '3.2',
        amount3: 10
      }, {
        id: '12987123',
        order: '23',
        amount1: '165',
        amount2: '4.43',
        amount3: 12
      }]
    }
  },
  methods: {
    handleClose() {
      this.$emit('close')
    }
  }
}
</script>
